﻿using Microsoft.Extensions.DependencyInjection;

namespace TradeFlow.Server;

public static class AppConfig
{
    public static string GetTagColor(string text)
    {
        if (text == BillType.Import) return "blue";
        else if (text == BillType.ImportReturn) return "orange";
        else if (text == BillType.Export) return "success";
        else if (text == BillType.ExportReturn) return "purple";
        else if (text == "现金") return "gold";
        else if (text == "微信") return "green";
        else if (text == "支付宝") return "blue";
        else if (text == "对账") return "processing";
        return "";
    }
}